<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo1-循环语句-对象</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case3-for">
    <ul>
        <template v-for="value in arr">
            <li>
                {{value}}
            </li>
            <li>-------</li>
        </template>

    </ul>
    <ul>
        <li v-for="value in arrObject" v-html="value"></li>
    </ul>
</div>
<script type="text/javascript">
    var case3For=new Vue({
        el:"#case3-for",
        data:{
            arr:{
                name:"王者荣耀",
                url:"https://pvp.qq.com/",
                user:"9535万"
            },
            arrObject:{
                name:`<a href="https://pvp.qq.com/">王者荣耀</a>`,
                url:`<a href="https://pvp.qq.com/">https://pvp.qq.com/</a>`,
                user:`<div>用户:9535万</div>`
            }
        }
    })
</script>
</body>
</html>